package com.tjw.ec.upms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tjw.ec.common.core.util.PageUtils;
import com.tjw.ec.upms.api.dto.RoleVO;
import com.tjw.ec.upms.api.entity.RoleEntity;

import java.util.List;
import java.util.Map;

/**
 * 角色表,基本权限的集合。无上级与下级之分;
 *
 * @author T-junwen
 * @email t-junwen@foxmail.com
 * @date 2019-07-27 16:43:31
 */
public interface RoleService extends IService<RoleEntity> {

    /**
     * @Title: 默认分页查询
     * @Author: T-junwen
     * @Date: 2019-07-27 16:43:31
     */
    PageUtils<RoleEntity> queryPage(Map<String, Object> params);

    /**
     * @Title: 查询用户角色列表
     * @Param: []
     * @return: java.util.List<com.tjw.ec.upms.api.dto.RoleVO>
     * @Author: 田俊文
     * @Date: 2019/8/2 14:11
     * @Throws:
     * @param userId
     */
    List<RoleVO> getRoleByUserId(String userId);
}

